package com.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.crm.model.SysAddress;
import com.crm.model.SysAddressExample;
import com.crm.model.entity.Tree;

public interface SysAddressMapper extends BaseMapper<SysAddress>{
    int countByExample(SysAddressExample example);

    int deleteByExample(SysAddressExample example);

    int insert(SysAddress record);

    int insertSelective(SysAddress record);

    List<SysAddress> selectByExample(SysAddressExample example);

    int updateByExampleSelective(@Param("record") SysAddress record, @Param("example") SysAddressExample example);

    int updateByExample(@Param("record") SysAddress record, @Param("example") SysAddressExample example);
    
    /**
     * 
     * @Description : 查询树结构数据
     * @author zealot
     * @param @return
     * @return List<Tree>
     * @version 创建时间 : 2016年11月4日 下午1:31:07
     * @thorws
     */
    public List<Tree> selectMaster();
}